<?php
declare(strict_types=1);

namespace App\Service;

use Hyperf\Contract\ContainerInterface;
use Hyperf\Logger\LoggerFactory;
use Psr\Log\LoggerInterface;

class Service
{
    protected ContainerInterface $container;

    protected LoggerInterface|LoggerFactory $logger;

    public function __construct(ContainerInterface $container) {
        $this->container = $container;
        $this->logger = $this->container->get(LoggerFactory::class)->get('service');
    }
}